const path = require('path') // vue.config.js
const vueConfig = {
    devServer: {
        // 由之前的 'localhost'改为如下，端口默认8080
    },
    // 基本路径
    publicPath: './',
    productionSourceMap: false,
    css: {
        loaderOptions: {
            less: {
                // DO NOT REMOVE THIS LINE
                javascriptEnabled: true
            }
        }
    },
    pwa: {
        iconPaths: {
            favicon32: './public/img/favicon.ico',
            favicon16: './public/img/favicon.ico',
            appleTouchTcom: './public/img/favicon.ico',
            maskIcon: './public/img/favicon.ico',
            msTileImage: './public/img/favicon.ico'
        }
    },
    configureWebpack: {
        externals: {
            'vue': 'Vue',
            'vue-router': 'VueRouter',
            'vuex': 'Vuex',
            'axios': 'axios',
            'store': 'store'
        },
        resolve: {
            alias: {
                "@ant-design/icons/lib/dist$": path.resolve(__dirname, "./src/core/icons.js")
            }
        }
    }

}


module.exports = vueConfig